Skip to content

fix(corbado_auth_firebase): repair compile error and resolve analyzer issues#253

Merged
spydon merged 12 commits into
corbado:mainfrom
spydon:chore/fix-corbado-auth-firebase
Jul 15, 2026
Merged

fix(corbado_auth_firebase): repair compile error and resolve analyzer issues#253
spydon merged 12 commits into
corbado:mainfrom
spydon:chore/fix-corbado-auth-firebase

Conversation

@spydon

@spydon spydon commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

What

Repairs corbado_auth_firebase (previously non-compiling) and brings it to zero analyzer issues, so the whole monorepo now passes melos run analyze (--fatal-infos).

  • Compile fix: the example referenced PasskeyInfo.userAgent, which no longer exists. Replaced it with ${passkeyInfo.sourceBrowser} on ${passkeyInfo.sourceOS} (the fields PasskeyInfo now exposes).
  • Docs: added /// doc comments for public members in exceptions.dart, corbado_auth_firebase.dart, and services/corbado.dart.
  • Safe fix: removed an unused credential local in the example (kept the awaited call).
  • Suppression (no API change): // ignore_for_file: prefer_constructors_over_static_methods for CorbadoService.getInstance.
  • Generated code: added analyzer: exclude: ['**/*.g.dart'] to the analysis options, matching the other packages.

No public identifiers, file names, or signatures were changed.

Verification

  • melos run analyze reports 0 issues across the entire repo (this package included).
  • melos run format:check passes.

Merge order

This is the follow-up to #252. Stacked on #252#251#250; merge those first and this diff reduces to just the corbado_auth_firebase changes.

spydon added 6 commits June 29, 2026 10:06
The json_serializable / json_annotation versions used need Dart 3.8.0.
Constraints are left as-is so consumers on Dart 3.8.0 still resolve the
3.8-compatible json versions rather than being forced to 3.9.0.
Add doc comments for public members, suppress API-breaking lints via
ignore directives without changing public APIs, and apply safe local
fixes. Generated files and corbado_auth_firebase (broken, separate PR)
are out of scope.
… issues

Replace removed PasskeyInfo.userAgent with sourceBrowser/sourceOS in the
example, add doc comments for public members, exclude generated files
from analysis, and suppress prefer_constructors_over_static_methods
without changing the public API.
spydon added 6 commits July 15, 2026 13:05
# Conflicts:
#	packages/corbado_auth/example/pubspec.yaml
#	packages/corbado_auth_firebase/example/pubspec.yaml
#	packages/passkeys/passkeys/example/pubspec.yaml
#	packages/passkeys/passkeys_platform_interface/lib/types/authenticator_selection.dart
#	packages/passkeys/passkeys_platform_interface/lib/types/authenticator_selection.g.dart
#	packages/passkeys/passkeys_platform_interface/pubspec.yaml
# Conflicts:
#	packages/passkeys/passkeys/lib/authenticator.dart
# Conflicts:
#	packages/corbado_api_client/lib/frontendapi/lib/src/model/block_body_data.dart
#	packages/corbado_api_client/lib/frontendapi/lib/src/model/process_common.dart
#	packages/corbado_auth_firebase/analysis_options.yaml
#	packages/corbado_auth_firebase/example/lib/widgets/passkey_list_item.dart
#	packages/corbado_auth_firebase/lib/src/services/corbado.dart
- ignore class_used_as_mixin in generated corbado_api_client models
- annotate register/authenticate overrides in passkeys authenticator
- ignore deprecated customDomain self-use in corbado_auth
- use activeColor for Switch to support min Flutter 3.32.0
The checked-in built_value output declared '_$XMixin' as 'abstract class'
but used it in a 'with' clause, which the Dart 3 compiler rejects. Convert
these to 'mixin' declarations (matching current built_value output) so the
generated frontend API client compiles and its tests pass.
The melos 'test' script ran 'dart test' for every package with a test
directory, which fails for the Flutter packages that depend on
flutter_test. Split it into 'flutter test' for Flutter packages and
'dart test' for pure Dart packages. Also remove the leftover default
counter smoke test from the corbado_auth_firebase example.
@spydon spydon merged commit d22c2a7 into corbado:main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant